<table class="table table-bordered  table-hover ">
<thead class="flip-content bordered-palegreen">
<thead>
<tr>
	<th width="100">直播商品ID</th>
    <th >商品名称</th>
    <th width="300">价格</th>
    <th width="300">库存</th>
    <th width="150">添加时间</th>
    <th width="200">操作</th>
</tr>
</thead>
<tbody>

{volist name="data.list" id="vo" }
<tr>
	<td>{$vo.goods_id}</td>
    <td>{$vo.goods_name}</td>
    <td>
        {if condition="$vo.price_type == 1"}
            一口价：￥{$vo.price}
        {elseif condition="$vo.price_type == 2"}
            价格区间：￥{$vo.price}~{$vo.price2}
        {elseif condition="$vo.price_type == 3"}
            折扣价：￥{$vo.price2}  <s>{$vo.price}</s>
        {/if}
    </td>
    <td>{$vo.goods_num}</td>
    <td>{$vo.add_time|dateTpl}</td>
    <td>
        {eq name="$vo.is_explain" value="1"}
        <a href="{:url('explain',array('id'=>$vo['id'],'status'=>0))}" style="color: #0BB20C" data-toggle="ajaxRemove" data-msg="确定结束讲解商品： {$vo.goods_name} ？"  title="结束讲解" class="fa m-xs" >讲解中</a>
        {/eq}
        {neq name="$vo.is_explain" value="1"}
        <a href="{:url('explain',array('id'=>$vo['id'],'status'=>1))}" style="color: #00a2d4" data-toggle="ajaxRemove" data-msg="确定讲解商品： {$vo.goods_name} ？" data-confirm="J:LJP"  title="讲解商品" class="fa m-xs" >讲解商品</a>
        {/neq}

        <a title="查看详情" class="m-xs" href="{:url('info',['id'=>$vo['id']])}" ><i class="fa fa-edit text-muted"></i></a>
        <a href="{:url('del',array('id'=>$vo['id']))}" data-toggle="ajaxRemove" data-msg="确定删除商品： {$vo.goods_name} ？" title="删除" class="fa m-xs" ><i class="fa fa-trash text-muted"></i></a>
    </td>
</tr>

{/volist}
</tbody>
</table>
{empty name="data.list"}
<table width="100%" >
 	<tr><td height="300" colspan="8" align="center" valign="middle" >没有相关数据！</td></tr>
</table>
{/empty}